package wnhz.com.business;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;

import wnhz.com.business.base.BaseActivity;
import wnhz.com.business.groupshop.MainActivity;
import wnhz.com.business.uitls.LogUtils;

public class StartActivity extends BaseActivity implements View.OnClickListener {

    Handler handler = new Handler(){
        @Override
        public void handleMessage(Message msg) {
            if(1001 == msg.what){
                startActivity(new Intent(StartActivity.this,ShengYiBangActivity.class));
                LogUtils.e("wxf","应用启动了");
                finish();
            }
        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_start);

    }

    @Override
    protected void onResume() {
        super.onResume();
        initView();
    }

    private void initView() {
        handler.sendEmptyMessageAtTime(1001,30000);
    }

    @Override
    public void onClick(View v) {

    }
}
